package com.zfsoft.deployui.service;

import com.zfsoft.deployui.deploy.Host;
import com.zfsoft.deployui.mapper.FabricChannelMapper;
import com.zfsoft.deployui.deploy.Channel1;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class AddChannelServiceImpl implements AddChannelService{
    @Autowired
    FabricChannelMapper fabricChannelMapper;

    @Override
    public void addChannel(Channel1 channel) {
        fabricChannelMapper.addChannel(channel);
    }

    @Override
    public void delChannel(String name) {
        fabricChannelMapper.delChannel(name);
    }

    @Override
    public Channel1 findChannel(String channelname) {
        return fabricChannelMapper.findChannel(channelname);
    }

    @Override
    public List<Channel1> queryAllChannel(){
        return fabricChannelMapper.queryAllChannel();
    }

    @Override
    public List<Channel1> queryByStatus(String status) {
        return fabricChannelMapper.queryByStatus(status);
    }

    @Override
    public void alterChannel(Channel1 channel) {
        fabricChannelMapper.alterChannel(channel);
    }

}
